/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Mercury.Entity.SystemModels;

namespace Mercury.Entity.DomainModels
{
    [Entity(TableCnName = "补料元素明细",TableName = "ReplenishmentLisElement")]
    public partial class ReplenishmentLisElement:BaseEntity
    {
        /// <summary>
       ///主键
       /// </summary>
       [Key]
       [Display(Name ="主键")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string Id { get; set; }

       /// <summary>
       ///补料单号ID
       /// </summary>
       [Display(Name ="补料单号ID")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string ReplenishmentLisId { get; set; }

       /// <summary>
       ///补料明细ID
       /// </summary>
       [Display(Name ="补料明细ID")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string ReplenishmentLisDetailsId { get; set; }


        [Display(Name = "元素Id")]
        [MaxLength(50)]
        [Column(TypeName = "varchar(50)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string ElementId { get; set; }

       /// <summary>
       ///物料名称
       /// </summary>
       [Display(Name ="物料名称")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string MaterialName { get; set; }

       /// <summary>
       ///批次号
       /// </summary>
       [Display(Name ="批次号")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string BatchNumber { get; set; }

       /// <summary>
       ///标识
       /// </summary>
       [Display(Name ="标识")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? Identifying { get; set; }

       /// <summary>
       ///元素名称
       /// </summary>
       [Display(Name ="元素名称")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string ElementName { get; set; }

       /// <summary>
       ///目标比例
       /// </summary>
       [Display(Name ="目标比例")]
       [DisplayFormat(DataFormatString="18,4")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? TargetProportion { get; set; }

        [Display(Name = "目标比例")]
        [DisplayFormat(DataFormatString = "18,6")]
        [Column(TypeName = "decimal")]
        [Editable(true)]
        public decimal? ElementContent { get; set; }
        /// <summary>
        ///实际比例
        /// </summary>
        [Display(Name ="实际比例")]
       [DisplayFormat(DataFormatString="18,4")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? ActualProportion { get; set; }

       /// <summary>
       ///目标重量
       /// </summary>
       [Display(Name ="目标重量")]
       [DisplayFormat(DataFormatString="18,4")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? TargetWeight { get; set; }

       /// <summary>
       ///实际重量
       /// </summary>
       [Display(Name ="实际重量")]
       [DisplayFormat(DataFormatString="18,4")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? ActualWeight { get; set; }

       /// <summary>
       ///物料Id
       /// </summary>
       [Display(Name ="物料Id")]
       [MaxLength(50)]
       [Column(TypeName="varchar(50)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string MaterialId { get; set; }

       
    }
}